﻿<Window x:Class="WPF.DataProvider.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:loc="clr-namespace:WPF.DataProvider"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <ObjectDataProvider x:Key="src" ObjectType="{x:Type loc:Person}"/>
    </Window.Resources>
    <Grid DataContext="{StaticResource ResourceKey=src}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <ListBox/>
        
        <StackPanel Grid.Row="1">
            <Button Content="_Show"/>
            <Button Content="_Age"/>
        </StackPanel>
    </Grid>
</Window>
